package com.huang.service;

import com.huang.resp.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author han
 * @since 2022-01-07 15:18:29
 */
@Component
// @FeignClient(value = "blog-user", path = "blog-user", fallback = UserServiceImpl.class)
@FeignClient(value = "blog-article", path = "blog-article")
public interface UserService {


    @GetMapping("/user/token/{type}")
    CommonResult getToken(@PathVariable("type") Integer type);

    @GetMapping("/user/info")
    CommonResult info();
}
